﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;

namespace Skyworth.CRM.Service.IDAL
{
    public interface IUserDAL
    {
        void Add(Users model, List<int> roles);
        void Update(Users model);
        void Update(Users model, List<int> roles);
        void Delete(int userId);
        void SetUserAuthority(int modelId, IList<UserModules> list);
        bool Exists(string userName, string password,out int userId,out int individualId,out int userType);
        Users GetModel(int userId);
        DataTable Query(string strWhere);
    }
}